<script src="http://www.google.com/jsapi"></script>

<?php if( $this->scriptJs == 'prototype' ) :?>
	<script> google.load("prototype", "1.6");</script>
<?php endif; ?>

<?php if( $this->scriptJs == 'scriptaculous' ) :?>
	<script>google.load("prototype", "1.6");</script>
	<script>google.load("scriptaculous", "1.8.1");</script>
<?php endif; ?>

<?php if( $this->scriptJs == 'jquery' ) :?>
	<script>google.load("jquery", "1.2.3");</script>
<?php endif; ?>

<?php if( $this->scriptJs == 'mootools' ) :?>
	<script>google.load("mootools", "1.11");</script>
<?php endif; ?>

<?php if( $this->scriptJs == 'mooRainbow' ) :?>
	<script>google.load("mootools", "1.11");</script>
	<script src="<?php echo $this->baseUrl;?>/html/scripts/mooRainbow/mooRainbow.js" type="text/javascript"></script>	
	<script language="JavaScript" type="text/javascript">
		window.addEvent('domready', function() {
			var r = new MooRainbow('myRainbow', {
				imgPath: '<?php echo $this->baseUrl;?>/html/scripts/mooRainbow/images/',
                id: 'rain1',
				'startColor': [58, 142, 246],
				'onChange': function(color) {
					$('myInput').value = color.hex;
				}
			});
		});		

		window.addEvent('domready', function() {
			var r2 = new MooRainbow('myRainbow2', {
				imgPath: '<?php echo $this->baseUrl;?>/html/scripts/mooRainbow/images/',
                id: 'rain2',
				'startColor': [58, 142, 246],
				'onChange': function(color2) {
					$('myInput2').value = color2.hex;
				}
			});
		});
		window.addEvent('domready', function() {
			var r3 = new MooRainbow('myRainbow3', {
				imgPath: '<?php echo $this->baseUrl;?>/html/scripts/mooRainbow/images/',
                id: 'rain3',
				'startColor': [58, 142, 246],
				'onChange': function(color3) {
					$('myInput3').value = color3.hex;
				}
			});
		});
	</script>
<?php endif; ?>  

<?php if( $this->scriptJs == 'dojo' ) :?>
	<script>google.load("dojo", "1.1.1");</script>
<?php endif; ?>

<?php if( $this->scriptJs == 'lightbox' ) :?>
	<script>google.load("mootools", "1.11");</script>
	<script src="<?php echo $this->baseUrl;?>/html/scripts/lightbox/lightbox.js" type="text/javascript"></script>	
	<script type="text/javascript">
			window.addEvent('domready',function(){
				Lightbox.init({descriptions: '.lightboxDesc', showControls: true});
			});
		</script>	
<?php endif; ?>

<script src="<?php echo $this->baseUrl;?>/html/scripts/cms.js" type="text/javascript"></script>